<style lang='scss' type='stylesheet/scss' scoped>
.as-button {
  margin-bottom: 10px;
}
</style>
<template>
  <div>
    <as-card :text="text"
             title="在两种状态中切换。为 as-checkbox 绑定 v-model 的变量为 true / false">
      <as-checkbox v-model="checked">默认按钮</as-checkbox>
    </as-card>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "",
  data() {
    return {
      checked: false,
      text: `<template>
   <as-checkbox v-model="checked">默认按钮</as-checkbox>
 </template>
 <script>
 export default {
   data() {
     return {
       checked: false
     }
   }
 }
 <\/script>`
    };
  }
};
</script>
